package com.leha.mp.core.constants;

/**
 * Created by xiabin on 2017/7/7.
 */
public enum CoreErrorDict {
    RESULT_ERROR(1, "数据不存在"),
    WXQRCodeRequsetFaild(2, "微信二维码服务请求失败"),
    SYSTEM_ERROR(10001, "系统未知错误"),
    PWD_Incorrect(10003, "密码不正确"),
    USER_EXIST(10006, "用户已存在"),
    Device_Not_Found(10007, "找不到推送设备"),
    USER_ID_NOT_VALID(10022, "非法的用户ID"),
    WRONG_DATA(10023, "请求数据错误"),
    No_VIP_INFO(10031, "无VIP记录"),
    NoTimesLeft(10032, "无可用此时"),
    ConsultStatusError(10033, "数据异常，请确认咨询状态"),
    ConsultExtraDataError(10034, "咨询字段异常"),
    Duplicate_Schedule(10035, "插入日程失败"),
    InvalideDoctorId(10036, "咨询号医生不匹配"),
    Duplicate_Schedule_Arranged(10037, "日程冲突"),
    NoEnoughMoney(10038, "可提现金额不足"),
    ERROR_CONSULTING_REFUND_FAIL(10039, "咨询服务退款失败"),
    ArrangeTimeInvalide(10040, "无效的预约时间"),
    CaseExist(10041, "已存在的病例"),
    WXError(10042, "微信信息获取失败"),
    ERROR_CONSULTING_DATE(10043, "咨询服务时间非法"),
    ERROR_CONSULTING_DATE_REDUNDANT(10045, "咨询服务时间重复");
    private String errMsg;

    private int errCode;

    CoreErrorDict(int code, String msg) {
        errCode = code;
        errMsg = msg;
    }

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
